/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skymr.baidumap.service;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JLabel;

/**
 *
 * @author skymr
 */
public class LaterThread implements Runnable{
    private JLabel jl;
    SMSSender ss;
    String text;
    public LaterThread(JLabel jl,SMSSender ss,String text){
        this.jl = jl;
        this.ss = ss;
        this.text = text;
    }
    public void run(){
        try {
            boolean r = ss.sendSMSMsg(text);
                 if(r){
                     jl.setText("短信发送成功");
                     
                 }
                 else{
                     this.jl.setText("发送失败啦");
                 }
        } catch (Exception ex) {
        }
    }
}
